using System.Collections.Generic;
using Provausio.Common.Objects;
using TrainingManagement.api.Models.Data.CRUD;
using TrainingManagement.api.Models.Data.CRUD.Department;

namespace TrainingManagement.api.Models.BusinessLogic.Department
{
    public class DepartmentSelectOperation : BusinessOperation<int?, List<BusinessObjects.Department>>
    {
        readonly DepartmentSelectDataSource _departmentSelect = new DepartmentSelectDataSource();

        public override List<BusinessObjects.Department> Run(int? input)
        {
            return _departmentSelect.Execute(input);
        }
    }
}